package com.lh.ribbon.controller;

import com.lh.ribbon.service.RequestByRibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lh
 * @Description:
 * @date 2021/3/26 16:25
 */
@RestController
@RequestMapping("/ribbon")
public class RibbonController {
	@Autowired
	private RequestByRibbonService requestByRibbonService;

	@GetMapping("/reqByRibbon")
	public String reqByRibbon(@RequestParam String name) {
		return requestByRibbonService.requestByRibbon(name);
	}
}
